package changceilingcolor003;

import toxi.geom.Vec3D;
import toxi.physics.VerletParticle;

public class ParticleClass {
	
	ChangCeilingColor003 p5;
	Vec3D pos;
	VerletParticle p;
	
	ParticleClass (ChangCeilingColor003 _p5, Vec3D _pos){
		p5 = _p5;
		pos = _pos;
		p = new VerletParticle (pos.x,pos.y,pos.z);
		p5.physics.addParticle(p);
			
	}
	
	void run(){
		render();
	}
	
	void render(){
		p5.stroke(255,255,0);
		p5.strokeWeight(5);
		p5.noFill();
		p5.point(p.x,p.y,p.z);	
	}

}
